<?php
$name_f = array(
        'name'=>'name',
        'id'=>'name',
        'value'=>set_value('name',''),
        'old'=>lang('your_name'),
        'class'=>'input-field',
        );
$email_f = array(
        'name'=>'email',
        'id'=>'email',
        'value'=>set_value('email',''),
        'old'=>lang('email'),
        'class'=>'input-field',
        );
$message_f = array(
        'name'=>'message',
        'id'=>'message',
        'value'=>set_value('message',''),
        'old'=>lang('message'),
        'class'=>'input-field',
        );
?>
<?php require_once dirname(__FILE__) . '/../filter.php';?>

<div class="contact-left form-container">
	<div id="ring-sizer-banner-container">
		<div class="list-banner">
			<?php 
				echo lang('ring_sizer_banner',true);
			?>
		</div>

		<div>
			<?php 
				echo lang('ring_sizer_text');
			?>
		</div>
	</div>
	<h1><?=lang('ring_sizer_head')?></h1>
		<div class="ui-widget" id="confirm" style="display: none; margin-top: 10px;">
			<div style="margin-top: 20px; padding: 0pt 0.7em;"
				class="ui-state-highlight ui-corner-all">
				<p>
					<span style="float: left; margin-right: 0.3em;"
						class="ui-icon ui-icon-info"></span> <strong><?=lang('succes_contact')?>
					</strong>
				</p>
			</div>
		</div>
		<div class="ui-widget" id="error" style="display: none; margin-top: 10px;">
			<div style="padding: 0pt 0.7em;" class="ui-state-error ui-corner-all">
				<p>
					<span style="float: left; margin-right: 0.3em;"
						class="ui-icon ui-icon-alert"></span> <strong><?=lang('error_contact')?>
					</strong>
				</p>
			</div>
		</div>
        <?php print form_open('ring_sizer/index/',array('id'=>'contact_form'));?>
					<?=form_label(lang('your_name'))?>
                    <?=form_input($name_f)?>
					<br />
					<?=form_label(lang('email_contact'))?>
                    <?=form_input($email_f)?>
					<br />
					<?=form_label(lang('message_contact'))?>
                    <?=form_textarea($message_f)?>
                    <br />

            <div id="btn-send">
				<?=lang('send_contact')?>
            </div>
        <?php print form_close()?>
</div>  
<div class="clear"></div> 